package com.example.crowdfunding.entity;

public class Authority {

    private Integer id;

    private String name;

    private String title;

    private Integer categoryId;

    public Integer getId() {

        return id;
    }

    public void setId(Integer id) {

        this.id = id;
    }

    public String getName() {

        return name;
    }

    public void setName(String name) {

        this.name = name == null ? null : name.trim();
    }

    public String getTitle() {

        return title;
    }

    public void setTitle(String title) {

        this.title = title == null ? null : title.trim();
    }

    public Integer getCategoryId() {

        return categoryId;
    }

    public Authority() {

    }

    @Override
    public String toString() {

        return "Authority{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", title='" + title + '\'' +
                ", categoryId=" + categoryId +
                '}';
    }

    public Authority(Integer id, String name, String title, Integer categoryId) {

        this.id = id;
        this.name = name;
        this.title = title;
        this.categoryId = categoryId;
    }

    public void setCategoryId(Integer categoryId) {

        this.categoryId = categoryId;
    }

}